<style lang="scss">
/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
@import "@/uni_modules/uview-plus/index.scss";
</style>
<script>
// import {
//   useGetUserStorage,
//   useGetTokenStorage,
//   useGetRefreshTokenStorage,
// } from "./hooks/useStorage";
// import { useUserStore } from "./store/modules/user";

export default {
  onLaunch: function () {
    console.log("App Launch");
    // const userInfo = useGetUserStorage();
    // const token = useGetTokenStorage();
    // const refreshToken = useGetRefreshTokenStorage();
    // console.log("App Launch", userInfo, token, refreshToken);
    // const $userStore = useUserStore();
    // if (userInfo) {
    //   $userStore.setUserInfo(userInfo);
    // }
    // if (token) {
    //   $userStore.setToken(`${token}`, `${useGetRefreshTokenStorage()}`);
    // }
  },
  onShow: function () {
    console.log("App Show");
  },
  onHide: function () {
    console.log("App Hide");
  },
};
</script>

<style lang="scss">
/* 每个页面公共css */
@import "./common/common.scss";
</style>
